package com.yuanfeng.goods.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Administrator
 */
@FeignClient(name = "mall-order",url = "http://localhost:8082")
public interface OrderServiceClient {

    /**
     * 查询商品在购物车的数量
     */
    @PostMapping("order/userCart/selectCount")
    public Integer selectCurrentCartQuantity(@RequestParam("userId")String userId,@RequestParam("goodsId")Integer goodsId);
}
